package com.cwnu.onlinemall.pojo;

//封装状态码，返回描述，数据，返回给浏览器
public class ServerResult {

    Integer code;//状态码 0:表示成功
    String msg;//对状态码进行描述
    Object data;//放置返回数据

    public ServerResult(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ServerResult() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
